	


/**
 * Utility methed used to retrieve page content via ajax
 * @param url - Url for content to retreive
 * @param params object literal containing name/value pairs of params to be passed  while retrieving content
 */
var getPageContent = function(url, params) {
	
	$('templatemo_content_section').update('Loading Data...');
	if (!params) {
		// Spring remoting requires at least empty object
		params = {};
	}
	params.r = new Date().getTime();
	Spring.remoting.getResource(url, params);
	
};

var createNewReview = function() {
	
	getPageContent("reviews/add");
		
};

var returnToReviewPage = function() {
	getPageContent("reviews/page");
};


	